package nc.ui.arap.bastradisc.excelimport;

import nc.ui.pub.bill.BillItem;
import nc.ui.trade.excelimport.InputItem;

public class BillItemValue implements InputItem{

	private BillItem item = null;
	
	private Boolean isNotNull = null;
	
	public BillItemValue(BillItem item) {
		super();
		this.item = item;
	}

	public String getItemKey() {
		
		return item.getKey();
	}

	public Integer getOrder() {
		return item.getReadOrder();
	}

	public Integer getPos() {
		return item.getPos();
	}

	public String getShowName() {
		return item.getName();
	}

	public String getTabCode() {
		return item.getTableCode();
	}

	public String getTabName() {
		return item.getTableName();
	}

	public boolean isEdit() {
		return item.isEdit();
	}

	public boolean isNotNull() {
		if(this.isNotNull == null)
			return item.isNull();
		else
			return this.isNotNull.booleanValue();
	}
	
	public void setIsNotNull(boolean isNotNull)
	{
		this.isNotNull = new Boolean(isNotNull);
	}

	public boolean isShow() {
		return item.isShow();
	}

	public boolean isMultiLang() {
		return item.getDataType() == BillItem.MULTILANGTEXT;
	}
}
